package com.ivanceras.client;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("simulation")
public interface SimulationService extends RemoteService {
	Questionnaire createQuestionnaire(String title, String description);
	List<Question> getQuestions(long questionnaireKey);
	ArrayList<com.ivanceras.client.Questionnaire> getQuestionnaires();
	//Boolean addNewQuestion(long questionnaireKey, String questionText, ArrayList<String> choices);
	com.ivanceras.client.Question addNewQuestion(long questionnaireKey, String questionText, ArrayList<Choice> qcList);
	Questionnaire saveQuestionnaire(long questionnaireKey, String title, String description);
	com.ivanceras.client.Question saveQuestion(com.ivanceras.client.Question question);
}